//
//  TeamModel.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/4/19.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "TeamModel.h"
#import "FriendsDetailModel.h"

@implementation TeamModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        NSMutableArray *arr = [NSMutableArray array];
        for (NSDictionary *memDict in dict[@"memberDtoList"]) {
            FriendsDetailModel *model = [FriendsDetailModel objectWithDict:memDict];
            [arr addObject:model];
        }
        self.memberDtoList = arr;
        self.roleName = dict[@"roleName"];
        self.num = [dict[@"num"] integerValue];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[TeamModel alloc]initWithDict:dict];
}

@end
